package com.itlin.service;

import com.itlin.bean.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {

    /**
     * 添加购物车
     * @param cart
     * @return
     */
    ShoppingCart add(ShoppingCart cart);

    /**
     * 查询购物车数据
     * @return
     */
    List<ShoppingCart> findList();

    /**
     * 清空购物车
     * @return
     */
    int clean();
}
